package com.springboot.mybatis.common;

public class ResponseDTO<T> {
    private String msg;
    private Integer status;
    private Object data;
    
    public ResponseDTO(String msg, Integer status){
        this.msg = msg;
        this.status = status;
    }
    
    public ResponseDTO(Object data){
        this.msg = "OK";
        this.status = 200;
        this.data = data;
    }
    
    public String getMsg() {
        return msg;
    }
    public void setMsg(String msg) {
        this.msg = msg;
    }
    public Integer getStatus() {
        return status;
    }
    public void setStatus(Integer status) {
        this.status = status;
    }
    public Object getData() {
        return data;
    }
    public void setData(Object data) {
        this.data = data;
    }
    
}
